package com.doit.day01;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class _03_redis的客户端 {
    public static void main(String[] args) {
//        Jedis jedis = new Jedis("linux01", 6379);

        JedisPool pool = new JedisPool("linux01", 6379);
        Jedis resource = pool.getResource();

    }


    public static Jedis getJedis(){
        JedisPool pool = new JedisPool("linux01", 6379);
        return pool.getResource();
    }

}
